package com.bean.wechat;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

//微信公众号咨询的问题
@Data
@Entity
@Table(name = "wechat_content")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class WechatContent {

    @Id
    private String id;

    private String userid;//用户id

    private String content;//用户的问题

    private LocalDateTime createtime;//创建时间

    //返回权限信息所涉及到的字段
    private LocalDateTime endtime;//过期日期 链接已过期
    private String type;//logintoken 获取XXX的内容

    private String other;//便于查询结果的内容
}
